#ifndef TREEVIEW_H
#define TREEVIEW_H

#include <QTreeView>

class TreeView : public QTreeView
{
    Q_OBJECT
public:
    explicit TreeView(QWidget *parent = 0);
    static QString getItemPath(QTreeView* obj);

protected:
    void dragEnterEvent(QDragEnterEvent* event);
    void dragMoveEvent(QDragMoveEvent* event);
    void dropEvent(QDropEvent* event);

private:
    QPoint m_startPos;

signals:
    void dragDropPaths(const QString& pathFrom, const QString& pathTo);
};

#endif // TREEVIEW_H
